// @ts-ignore
/* eslint-disable */
import request from '@/utils/request'

/** 此处后端没有提供注释 GET /delChat */
export async function deleteChat(options?: { [key: string]: any }) {
  return request<string>(`/ai/delChat`, {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /getChat */
export async function getChat(options?: { [key: string]: any }) {
  return request<AiService.ChatMessage[]>(`/ai/getChat`, {
    method: 'GET',
    ...(options || {}),
  })
}

/** 此处后端没有提供注释 GET /search */
export async function searchWithAi(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: AiService.searchWithAiParams,
  options?: { [key: string]: any }
) {
  return request<AiService.ServerSentEventString[]>(`/ai/search`, {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  })
}
